<?php

//<editor-fold defaultstate="collapsed" desc="License & Copyright">
/*
 * @license
 */

/**
 *
 * @author Jevgeni Geimanen (jevgeni.geimanen@gmail.com)
 */
//</editor-fold>
class SCEvent extends SCStruct {

    public $eventer = null;
    public $name = null;
    public $args = null;

    public function __construct($name, &$eventer) {
        $this->name = $name;
        $this->eventer = $eventer;
    }

    private $_IsPropagationStoped = false;

    public function getIsPropagationStoped() {
        return $this->_IsPropagationStoped;
    }

    public function stopPropagation() {
        $this->_IsPropagationStoped = true;
    }

    private $_Args;

    public function getArgs() {
        return $this->_Args;
    }

    public function setArgs($args) {
        $this->_Args = $args;
        return $this;
    }
}